import request from '@/utils/http'
import { BaseResult, PaginationResult } from '@/types/axios'

export class ConfigService {
  // 获取app配置
  static getConfigList(params: any) {
    return request.get<BaseResult<PaginationResult<any>>>({
      url: '/app_config_list',
      params
    })
  }
  // 修改app配置
  static updateConfig(data: any) {
    return request.post<BaseResult<PaginationResult<any>>>({
      url: '/app_config_update',
      data
    })
  }
  // 新增app配置
  static addConfig(data: any) {
    return request.post<BaseResult<PaginationResult<any>>>({
      url: '/app_config_add',
      data
    })
  }
}
